﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="MCromwell.StaffIntranet.Core.LoginSession, MCromwell.StaffIntranet.Core" table="LoginSession">
    <id name="Id" column="Id" type="guid">
      <generator class="guid" />
    </id>

    <property name="StartedAt"
              type="DateTime" />

    <property name="LastActivity"
              type="DateTime" />

    <many-to-one name="Administrator"
                 column="AdministratorId"
                 class="MCromwell.StaffIntranet.Core.Administrator, MCromwell.StaffIntranet.Core"
                 lazy="false"
      />
    
  </class>
</hibernate-mapping>